package tianrun.ziguan.api.calculate.config.dto.request.sync;

import tianrun.ziguan.api.calculate.config.enums.MoldEnum;
import tianrun.ziguan.api.calculate.config.service.sync.SyncType;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Map;
import java.util.Set;

public class SyncBody {
    /**
     * 源数据id
     */
    @NotEmpty
    private Map<MoldEnum, Set<Long>> source;
    @NotNull
    private SyncType type;
    /**
     * 目标id  资产或者模板
     */
    private Set<Long> range;

    public Map<MoldEnum, Set<Long>> getSource() {
        return source;
    }

    public void setSource(Map<MoldEnum, Set<Long>> source) {
        this.source = source;
    }

    public SyncType getType() {
        return type;
    }

    public void setType(SyncType type) {
        this.type = type;
    }

    public Set<Long> getRange() {
        return range;
    }

    public void setRange(Set<Long> range) {
        this.range = range;
    }
}
